package xyz.zyl2020.security.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import xyz.zyl2020.security.entity.User;

/**
 * @author ZhuYinglong
 * @date 2020/8/30 0030
 */
@Repository
public interface UserDao extends JpaRepository<User, Long> {

    User findByUsername(String username);

    User findByEmail(String email);

    User findByUsernameOrEmail(String username, String email);
}
